<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.Statement" %>
<%@ page import="com.mysql.cj.api.mysqla.result.Resultset" %>
<%@ page import="java.sql.Driver" %>
<%@ page import="java.sql.DriverManager" %>
Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/3/29
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%  //获取用户输入的信息，用request.getParameter("")
    String id = request.getParameter("id");
    String username = request.getParameter("userNname");
    String password = request.getParameter("password");

    //3+1
    Connection connection = null;
    Statement statement = null;
    Resultset resultSet = null;
    //插入语句
    String sql = "insert into t_users VALUES(?,?,?)";

    Class.forName("com.mysql.jdbc.Driver");
    connection = DriverManager.getConnection("jdbc:mysql://locallhost:3306/sctu_javaweb_2018?severTimeZone=Utc",
            "root","113223");
    statement = connection.createStatement();

%>
</html>
